<?php
class Search_detail extends CI_Controller {
	public function __construct()
	{
		parent::__construct();
		$this->load->helper('url');
		$this->load->model('com_model');
	}



	public function view($page = 'search_detail')
	{
		if ( ! file_exists('application/views/pages/'.$page.'.php'))
		{
			// 页面不存在
			show_404();
		}
		$company_id      = $_GET['cId'];
		$data['company_detail'] = $this->com_model->get_company_detail($company_id);
		$this->load->view('pages/search_detail', $data);
	}
}
